﻿using System.ComponentModel.DataAnnotations;

namespace GioHangViet.Models
{
    [Table("Languages")]
    public class Language
    {
        [Key]
        [Required(ErrorMessageResourceType = typeof(Resources.Error), ErrorMessageResourceName = "ErrorLanguageAlias")]
        [StringLength(50, ErrorMessageResourceType = typeof(Resources.Error), ErrorMessageResourceName = "ErrorLanguageAliasLength")]
        [Display(Name = "DisplayLanguageAlias", ResourceType = typeof(Resources.Displaies))]
        public string Alias { get; set; }

        
        [Required(ErrorMessageResourceType = typeof(Resources.Error), ErrorMessageResourceName = "ErrorLanguageName")]
        [StringLength(50, ErrorMessageResourceType = typeof(Resources.Error), ErrorMessageResourceName = "ErrorLanguageNameLength")]
        [Display(Name = "DisplayLanguageName", ResourceType = typeof(Resources.Displaies))]
        public string Name { get; set; }

    }
}